modded nc db rebuild to restart pg