added `db` property to definition for attaching to the specified database