remove duplicated directory, add database files