Fixed DatabaseInstall to correctly excecute DatabaseUninstall (pre!) code.
Added support for CodeUninstall (pre!) code. Adapted code to be more similar to DatabaseInstall.pl script.