Sql Statement interface

Added Sql Statement functions to the SQL interface.