Removed the connections array and kept track in the database