Use insertGetId instead of just insert

This way we don't always get returned 1 and will in fact get the inserted ID.