refactor options for db

move getOptions() into closure -> we can remove the this._options parameter

remove options variable from methods, use parameter instead
this is safe since we always create a new object and extend it