ncpdpDatabase Rewrite