First implementation of a postgresql recipe