added code to populate db