added database migration plugin and created initial change log for latest MySQL database. fixes #406