Fixed a memory leak on the master project

Removed code that allocated a new handle for sql while the handle was
already allocated causing a memory leak.