Using libary to create and drop of seriesly db

Change-Id: Idf646eab5c994f18c6863a791f130e28ee3908e2
Reviewed-on: http://review.couchbase.org/36898
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Reviewed-by: Li Yang <lichenyang2@gmail.com>