Move MySQL database creayion to helper script.

Previously a separated script, it is now on a helper script which is
used by MySQL and MariaDB scripts in order to enable remote access and
create/import databases.