created entry model, added url generating logic (TODO: check for duplicates