Fix for order of launch process to cure db disconnection when daemon is run