Update mysql setup script

This recreates the mysql data dir if empty and provisions the database as needed