Fix posts.html and posts.markdown field type

closes #1947
- changed posts.html to maxlength: medium
- changed posts.markdown to maxlength: medium
- added method to fix databases created with wrong field type
- added tests for database version 002