Sqlite-specific query objects

Also get rid of some duplication via creating LimitTrait, OffsetTrait and OrderByTrait