Reset prepared statement between query lists on shutdown
Proper support for BIGINT (as long) in the db_text SQL driver.
Many thanks to Jeff Pyle for reporting and troubleshooting this.
Fixed the weight-based balancing alg.
Credits go to Rob Gagnon (rgagnon24)
Merge pull request #109 from rrb3942/shutdown_segfault

Reset prepared statement between query lists on shutdown