Once your data retrieving function is ready, you can implement the import routine using Database.query class from the standard Virtual Ticket APIs for database access. All database-related functions must be implemented in Server-Side MetaScript.
Sample import function:
Put new button on the test form and write the following code in the Click Action: