Added DAO factory for better DAO creation