Removed memory leaks in test_sqlite3
Cleaned up leaks in stage.c
Valgrind-clean for all tests
all tests passing