Fix some events stuff, add some service commands, and tweak db connection