Repair database when the rake task is done