add method to add entry to database