bugfix: database export not working when file exists