Add funciton to read db remote connection.