Added transactional tag to controller method in an attempt to fix postgresql errors