Setting up security for persistence stores