Added category function to entry model
added thumbnail field