Refactor SciDBInterface to use AFL