Added output of SQL query.