Cleaned-up abstract DAO class.

Signed-off-by: Paulo Pires <pjpires@ubiwhere.com>