Modified EntryController to get entries from data base.