writeSeries database should come from local options if available

fixes #52