Added method isOpen() in DB/DBInterface
Fixed a bug in DB.getNote(id)

The returned Note time didn't have the correct year, month and date set
Refactor of the WriteNote activity