Make use of built-in 'current_user' template variable.
Auth example: Build sample db on startup.
Layout example: build sample db on startup.
Forms example: build sample db on startup.
SQLAlchemy example: build sample db on startup.