changed to psql database, added auth and created user profile with api key