Add the db object to headers.