Moved PFN database allocation into a separate file