Error occurs when multiple developers are trying to perform migration at the same time:
"The staging database DBNAME is currently locked by CSR#"
Stat only allows one user to stage a project at a time. If there are a large number of migrations being run simultaneously, make sure to create at least two staging databases to avoid migration contention.