modified get_venue sql for PostgreSQL db