Refactored osmosis to be more solid
Fixed issue with db
Fixed some socket issue and use relative domain