This handles the DB queries (implementation code), uses the net.jot.db.* code under the hood.