postgresql and logs working