Started database work, registered listeners and commands, set up store