I should have read your problem description properly before starting to ask silly questions, but nevertheless I verified that I can build your package with that exact SDK/build engine/target combination without issues. Those error messages hint that the rpm database in your build target has been somehow corrupted. I think the easiest solution for you is probably upgrade to install the target again. Well, you can’t exactly easily reinstall it as it was installed as part of the SDK, but you can install the EA target, which at the moment happens to be the same version.
The easiest way to install the EA target is with command sfdk install SailfishOS-3.3.0.16EA-armv7hl
Or you can just reinstall the SDK. Or upgrade it, but as we have an annoying bug (SDK 3.2: linker failure (regression)) in the latest released SDK, I can’t really recommend upgrading at the moment.