add example
use RAILS_ENV to detect database config.