add conn.commit in select to fix bug
add conn.commit in select to fix bug