fix DB namespace error from previous potential performance improvement
Merge pull request #112 from omgninjaz/api_fix

Fix namespace error in previous potential performance improvement