add ActiveRecord style query interface