Refactored DBops to do all DB operations with creating and inserting into sqlite db tables