Add in some error checks when setting local image locations
Extra checks on db upgrade