Added update methods to database.