Account for SQLITE_MAX_COMPOUND_SELECT=500