Fixed query in getModulePageFromId
Added missing data access initialization.