Bug 1104749 - [Rooms][Log] Connect Rooms Log with DB

I added the synchronization after users have been logged properly. It is because of I base my approach on the idea about old notifications are not received once users are logged. Otherwise, I have to move it once users are authenticated instead of logged because we will receive pending notifications created when we had the phone off. Do you know if pending notifications are received after logging while we have been off? Thanks a lot @borjasalguero