fix wd_regsrv.py, add sqlite3