glsql: fix test code that was leaking a database connection
A database connection was being overwritten, which means the earlier database connection would never actually be closed. This change changes the variable that the second database connection is named.
As this snippet demonstrates, a variable inside of a defer is subject to being overwritten.
This fix is very similar to !4012 (merged)
fixes: #3898 (closed)