organize imports
check if tables exist in the target database before starting