fix for #338 that causes "databaseName must be a string" error
fixes #338 - self.query has config key (value undefined?) that overrides collection.config.
Merge pull request #340 from russellsantos/0.9.x

0.9.x - fix for #338