added new file for all the database interaction