(fix) Add promises to empty local Db so that new projects redirect to files pages works correctly.