implement reconnect postgresql from lua listener