add walletnotify_email()
refactor db initialization