create database helper class to handle database operations