add workflow sql definition and configue page