Finished initialization of database, stated main event loop.