Add migrations
Fix bug returning HTML contents. Improve error reporting.