added callback to populateDatabase to be more consistent across the class