finalize conn when idleconn <= 0
support select last_insert_id() and select row_count()