MySQL driver

It looks like PostgreSQL is quite deeply intertwined with the `db` interface.

- Move `postgres` to `db` and introduce a dialect (`postgres` or `mysql`) configuration.
- Update docs.
`request_uri` is pre-rewrite