MidnightBSD 0.4-RELEASE hit FTP servers today and the new version includes a custom package management tool, "mport", that was developed with sqlite3 and libarchive. The packing list and all metadata is stored in SQL and a tool is provided to query the package database directly. This allows scripts and third party tools to easily integrate with the package system.