Use preferences in connection.
Remove select code.