Updates for db authenticate bug