ActiveRelation and raw SQL queries and database seed from CSV