updated base repo to see if it will only update the db if it needs it, and not delete data.