fixes #2193 SQL error on Postgres 9.1 for classes_from_storeconfigs