Feature/handle enums in mysql

@oldpatricka