completed update query in dbrecord->save method