More tweeks to the mysql backend and handle some config issues a bit better