Moved database initialization into new class Database. We now generate a UUID and put it into the database to identify the server (for synchronizing data between different servers in the future).