Closed the database connection in some Activity

Now before closing the activity, the database connection, where it's
present, is closed.
Merge branch 'master' of https://github.com/groupENIGMA/journalEgocentrique