Move database logic from Point to a DAO, make MediaItem a standalone class

The DAO now handles all CRUD operations for Points and MediaItems.
Also, foreign keys are now enabled in the onOpen() method of
MapJournalDbHelper