Organize rake file and add tasks for checking DB records