fixed unit test to use callback instead of a return value for populateDatabase function