Database restore is now functional

Also added the ability to run script from a specified path.
Adjusted a couple of namespaces