Change error message
Add code to call stored procedure, change names

Also removes the query that we had been using for metadata pulldowns.
From now on, metadata pulldowns can be done with python_code/ag_get_metadata.py