Avoid running SQL queries for empty arrays

Running a query with an empty `in` operator would throw an error on
PostgreSQL: `syntax error at or near ")"`. This only appears to be an
error with PostgreSQL and SQLite is fine with it, but let's avoid it
altogether.
0.0.3