change clsql to BDB, db connection bug fixed