Removed id counter, now id increments to existing max id. Temp solution.