Added function to populate db