Added loaders so now all database queries are done on a seperate thread