add database and two model User and Entry
some structure changes