How to save IBKR real time data feed to a local database?

Your user account isn't marked with License verified badge. Did you purchase AmiBroker license?

Only users with License verified badge are allowed to post on this forum.

So before posting, make sure you verify your license as explained here.

As to the answer: Trial / demo does NOT save data. Once you purchase the license, you don't need to do anything to save - AmIBroker automatically saves data it received from plugin when you exit the program if Local data storage is enabled in the database settings (that is the default setting)
Explained as always in the manual: