Begins the postgres database setup
Adds concept of api key to database