Fix db version in installation scripts; refs #850
Update upgrade scripts in unit tests