Refactored CRUD methods to set security credentials and return strings