getInsertId() -> getFirstInsertId()
With any luck things should be working again
Updated usage examples