Correct DB connections in the scripts