Added some dao functionality