database flush script
fix attachment existence check
ui update