Install process fixes

Improve the mysqli validation check to create the database if it does not already exist rather than throw a misleading error.

Fix issue #1870 - no longer need to look for DROP lines and add IF NOT Exists to the search string for creation.