MySQL fixes to the history db

Add String column types in the history db a length - as required by mysql dialect

When using the history DB with mysql there are a few errors due to missing VARCHAR column sizes.
This commit assumes some sensible max sizes and fixes them...