moved LocDataBase to Code