Fix repreparing statements on auto reconnect