Fix for filename extensions

-File name extensions are maintained when restoring a database