added db.insert method