Hi,
I can guide you, what needs to be done for this scenario:
Create Microflow and add the following logic,
Establish JDBC connection in JDBC_url object,
Write query i SqlQuery Object and
Inside ExceuteQuery map the Jdbc_Url, Username, Password, Sql Query and Result object is the one which you will store the data by creating an empty object.
Hope it might be helpful