Can I connect to an external DataBase to get data in a LogicHook or Scheduler?

Hello Everyone!

I have a question, exist some form to stablish a connection with an external DataBase from a LogicHooc or Scheduler?

I need get data from an external DataBase to insert in a module and I need make this in a Scheduler.

Regards!