Fixed databases not being detected in query_classifier when creating new tables.