A simple DAO with some queries and formatting facilities