trying to store connections in model