Move the database creation to avoid spawning 2 mysqld instances and destroying the socket

Issue #6