Fix db duplicate