Added sql on runtime