[fix #49577191] refactored the queries (better performance)

Other changes:
- changed url ftp -> http (faster)
- dynamically created/dropped tmp_taxonomies table.
- added other test files
- added DB environment config