Some utils function for work with riak