Initial stab at the dao implementation.