Hello,
The IM directory data storage is usually LDAP server but can be SQL server.
The decision is done when creating the IM Directory and cannot be changed later.
Its purpose is to store Managed Objects (Users, Groups, Organization) information.
The IM database tables are stored within SQL servers (Oracle or Microsoft). These are created during IM installation.
Their purposes are to store IM objects (Roles, Tasks, Policies,...) definitions, Running status (tasks, events, workflows) and reports definition.
The main point to be able to compare data is that the data format from the different sources should be similar.
Here it appears data are either in ldif format either in table row format.
This let guess you will need a conversion process to be done from a side or another.
You can (for example) implement an SQL endpoint in IM to store information within your own table(s) and assigned to all the IM Users template that will create the records within.
However these will be redundant data with the IM Directory ldap.
best regards.