writeSeries database should come from local options if available

fixes #52
Merge pull request #53 from thedillonb/fix-options-on-writeSeries

writeSeries database should come from local options if available