update DB entities