Getting correct count and attributes from database

-passing correct counts to template creation
-passing correct parameters to heat stack-create/update

Change-Id: If6860b88e7db0656b10edf0841199a17b127a8c9
Merge "Getting correct count and attributes from database"