Small fix to layout.html
Basic migrations mechanism and schema auto-creation at startup (if needed)