Streaming data to separate database

can we stream data to our own database when a smart contract event happened with cloud functions? if we listen to smart contract events through moralis, what if any contract event happened during the downtime of moralis server will it queue the events that happened during downtime?

The events should be queued. You can also connect directly to you Moralis server mongo db but you will see only the synced events there