Implement database.yml template & driver switch

Before we go any further, let's fulfill the promise we made in the
documentation regarding database switching.  The repo will maintain
the sqlite3 settings, since they're the easiest to deploy and review,
but templates and tasks for pg and mysql are included.