Change spawn db process and add pid in log