=BG= move local copy of postgres middleware to external library (at https://github.com/nickel-org/nickel-postgres)