better logging for rethinkdb