small crud framework and "transactional" -like schema for PouchDB