Specify string length.
Turn on autoflush to prevent mysql error.