define sql and other stuff