Adding sql tex