Fixed resolution & generation of cross database references https://github.com/nuodb/migration-tools/issues/3