Hi,
Database statements are coming by OneAgent. Have a look to How database activity is monitored.
Best regards