Added async class (DatabaseLoader) to load the database in a separate thread.