Code

Added DEBUG output for sql statements.