Simple version of SQLinterpreter with list passing