add two thread :accessSql and accessAvls