Well as I was doing all the changes and deletions the vault was not attached.
That won't make any difference.
Let's assume your images are being managed by Aperture; that's the default behavior and you have to do something on purpose to have them in Aperture by reference. If that's true, then your images are in three places (which is not bad): 1) in the Aperture Library, 2) in the Aperture vault, 3) in the 37GB folder of images. But each group probably isn't the same if you've been deleting arranging and renaming in Aperture - those changes are only in the Aperture Library until you back up to the vault.
So, to move the Aperture Library, you would just need to copy it to it's final destination and open it with Aperture (double-click it) from there.