small fix and postgresql