Why does my site fail after restoring the database?
I found the reason of mistake. I accidentally put Entity module into the core and it generated WSOD when I tried to restore the database on my localhost. You should never put contributed modules into core modules folder.