Local db helper classes