Fix error with similar table names across databases

If the same table name exists across multiple databases the sync command can error out and fail the sync procedure. Conflicts with indexes can occur.