update database to psql