simple single database entity working