Fix db methods.
Merge pull request #15 from lfritts/more_db

Fix db methods.