Properly restore Postgres database to new application