rake task to repair pg staging database