Fixed Statistics DAO functions and Added Link Custom DAO functions