Fixed DB connection in the script for taxonomies