kore postgresql dependency fix

This makes postgresql an optional dependency.
Please leave bottle blocks in place when revising formulae; we'll update them when we pull.