fixed undefined db error, updated to 0.9.1