modify dao's template file to close PreparedStatement clause