added methods to groups dao;