Update WriteDatabaseTask.java