fixed SQL for retrieving venue list - using same query for SQLite and postGreSQL