Move _databaseEvents() below _transitionListener()