Add methos for adding, and updating records in database.