Made ResyncDatabase an object