updated schema and rake task