Merge pull request #27 from jcristovao/upstream

IN works for subList_select assumes ordering.
Added support for PostgreSQL and MySQL/MariaDB.