moved mysql state into a folder, added service handler