Put connection in the constructor