Several bug fixes to get SSC tests working properly.

Fixed database cursor issue
Fixed mirroring volumes correctly

Change-Id: Ic0f25ff8bb18afa03da22275ad893dfe51af686f