use self.snapshot as database object

Change-Id: I5d225ddaa5841fb1e165f535d2dfc7dc4638cd46
Reviewed-on: http://review.couchbase.org/25054
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>