Implemented database observer
Moved db init to MainController for testing.

Gonna put it back shortly
Changed it back
Half implemented login status on statusbar