converting auth to DB and webpage