correct UserData::__constructor() and refactor getUserOnlineStatus() method to Doctrine