Working Func to Add Rows to db

deleted the class file and added an include to initiate db.