fix db bug with the new ids