WIP: mysql support

Inculdes configuration reworks.