finished integrating Postgres into app