adding insert method to DB class