add web interface API
make DAO classes thread local