updating the database script to populate studyinfo_t