Add rake task and mailer for table checking