moved bs to zse and merged to gettec that now works with sql

moved bs to zse and merged to gettec made gettec work with database