Adds method to connect to RethinkDB.