Adapt db reads/writes to new methods