tune sqlite performance

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