fixed bug in wau_db