Db equals & hashcode fix