Fixes for the installer. Display error messages on failures, as well as actually check for tables before installing.
Lets comment this rather tricky function.