I have created a below function to update the device info in my django app, it does update the device information but also keeping the old data in the table, it should overw