Written PFN database code