add dbsetup, make wifido write to db