Ensure that the sqlite prepared statement is finalised