Added ActiveRecord-ish query APIs (#where, #limit, #offset)