keep the connection for a certain time after write sql.