Add auth check from database