Removing db connection idle timeout and fixing closing of connections