added entry number to model and db