Use general types for mysql fields

/cc @senny