update DB class