Fixing mysql db detection bugs. Now installation and tests work :)