updated 2 methods in database