Fix [H302] errors in heat/db

Change-Id: I9afc8f1ec2a9ff1351cde28298470b8bcd807e7a