Debugging
Debugging
Significant simplification and cleanup of query code
Fix variable name for db connection
Debugging
Echo Errors
Fix SQL query