CLOUDSTACK-5449: fixed pep8 errors
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
Fix several Resource Leak issues related to not closed PStmts and ResultSets

Signed-off-by: Daan Hoogland <dhoogland@schubergphilis.com>