refactoring, added dao methods, begun admin page