add method for SQL result -> array transformation