Use the ORM to grab swapsize

Using sql cursor may cause problems creating volume within a transaction
in the unit tests.