update rolify and add pessimistic version locking