method updates on database class