updating auth
Adding adding thread to db ability.