Integrated new database update methods
add and update methods are working