multi thread, but not stable
rwlock for db
remove test code from network
bugfix network
test rdlock for db