move file directory
recognize connection errors
improve interface to get lastStatement query