Establishes connection to RethinkDB