Postgres restablishes connection

The postgesql driver now restablishes its connection after a disconnect
from the server.  The prepared statement will also be recreated to
ensure it points to the correct underlying db connection.