Unify postgresql recipes

I messed up #162. Let's start again here.