postgres: use sql db context functions
postgres: use sql db context functions

Now that golang sql.db and libpq support context in exec and query functions for
some time, use them.

Will possibly fix a connection leak when ctx expires since the current
implementation doesn't close sql rows on context expire.

sorintlab/stolon,sorintlab/stolon,sgotti/stolon,sgotti/stolon