Maybe capitalize SQL keywords? "SELECT * FROM ST_Contouring(...".