Add sql_where to pghelper, add env.sh