Bunch of updates to libpm
Added pmem_db example
Living in the world of macros