DbObject add method isSaved
to check whether object already saved.