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
Merge pull request #79 from rvagg/refactor-options

refactor options for db