db: split caller_info and sql into separate output file