made formatForOutput and more. Next: move CRUD ops to BaseApp