QueryDatabase fix

QueryDatabase returns "Error" now. Was crashing when returning empty
stringarray