use to_a after all to get queries to actually run on activerecord 4