modifies to make trema gem installation success and crating sliceable switch DBs.