Copy db connection pool tweaks from syncstorage.