repopulating database via helper function