pass db to update meta