Improve doc for Custom DAO

Add global definition and override function examples. The inject annotation was required for my constructor to work, but I don't know if it is the case for everyone.