Correct check if database exists (and option to clean it before installa...

...tion)