in reply to Sql connection error

Er, yes. Change the name of the column 'connection', it appears several times in the code and you may well have to change it in some database table as well.

Update: The OP has completely changed the node that was replied to, consequently this doesn't make sense

/J\