Postgresql cookbook fixed