add database.yml.example
add middleware
add content_type setting
use middleware_autocomplete gem