fix to wrap quotes around selectData query args
check if psycopg2 is available, so BusTripper can be imported without it