stdin for text_to_db