better API design for readingdb module