added timestamp to db and entity