fix db-put stdin read issue