Added the database to the martini routes.
Made the database middleware use a *DB instead of a DB