this is the DAO layer of the new Portal, all figured out and implemented.