Added ability to get SQL statement metadata