Added db based auth.