Redash Database Shift

If we shift the Redash database to a new database would the Queries in the previous database also shift with the same query id’s?

They should, yes. To do this you should backup your old database to a file. And then restore that file into the new database.