Added methods to ActiveRecord::Base and ActiveRecord::Relation
Being able to query (NOTE: needs refactoring and testing)