dbapi query limit and offset