fix db doule inserted issue