Added setting stmt to null in Database, appears this is also required to close a connection.