Component for connecting to the perspective db, uses rethinkdb