Updated the DB connection string and stop logging

Connection string was incorrect and needed to stop the logging at the
end of the script.