server: intermediate: fixing the return type for PersistenceController