Small bug fix in getEntry() and getEntryOfTheDay()

I've forgot to close the cursor (thx Igor for the heads up)