Adding comments to the DAO methods and add basic input checking