Error while restoring backup to version 5

I have installed v5 but not been able to get past the setup screen.
So I decided to try and restore v4 database backup to v5. When I run the following commnad

bnech frappe --restore site1.local database.sql

it gives me the error saying “frappe app is not installed” when infact it is installed.
What could be the problem.

@satishguptajaipur try:

bench restore database.sql

if you are on a local machine then you might need to do a

bench --force restore db.sql

Perfect. Worked beautifully. Thanks for help.