setup own server for postgres and tried to fix memory model. Still fix needed.