update DB model