Script db sync and service restarts