Test mode db and user db now working