removing pubSub dependency from app_database #SOCRFW-87