add code to populate database