Actually wait for the database to be loaded before we do anything.