update to pooldb rethinkdb