Converting the production database to Prolog to ship LOC.