added sql_query API to execute a SQL query