add equals and hashCode methods to DBAction, DBObject and DBProfile