When using callback functions and throwing an error (i.e. attempt to index a nil value), it would respond about an error in a nested ref call.
Don't catch callback errors.
query refers to the old execute function.
preparedStatement renamed to execute.
Parse arguments before establishing connection.
Utilise response function to determine and return correct values to the export.
execute now accepts an array of values when performing a single query, rather than requiring an array within an array.