add tool to add text representation of queries and scenes to the db