interface for SQL