Moved reading table names to a separate function to support the generation of the DROP TABLE query when the database is being refreshed.
Moved reading table names to a separate function to support the generation of the DROP TABLE query when the database is being refreshed.

freneticmonkey/migrate,freneticmonkey/migrate