Added read and write connections for db