Grafana v8.5.3 Not save configuration in DB

I’m using Grafana v8.5.3 and I installed it on the Ubuntu server,
When I tried to reset the admin password of the admin user from the application, It gave me a successful message but the password wasn’t reset and it is still the default “admin”
Also, when I tried to save the Postgres Datasource configuration, It wasn’t saved.