fix DB namespace error from previous potential performance improvement