adding sql and block tpl