Added the getEntry(long id) method in DB.java

As requested by matteo I've added the new getEntry(long id) method
in DBInterface.java and implemented it in DB.java.
I've also created a new private method createEntryWithNotesFromCursor(),
used by getEntry(long id) and getEntry(Calendar day), to keep in one
place the code that creates an Entry from a Cursor.