Made methods realated to fetching and inserting data into DB