both sql extraction methods working
query done
works locally