first try to write postgresql files