Authentication

Adds the database creation to the gameloop. The database can be accessed from anywhere now.