Save connection at db variable