removed empty line in sql.c and added code to report