Adding dbapi query limit and offset