Fixed mysql db initialization when using a custom datadir location