update database related classes

as titled