persist to db first when create file/folder