Yes, it can be translated int KiXtart code. You might need to change the way it gets the input parameters, though.

Take a look at the following UDF for database connectivity:
DBConnOpen()
DBConnclose()
DBExecuteSQL()
_________________________
There are two types of vessels, submarines and targets.