Implemented redone database models
Re-implemented IP policies with offset and length