splite clear() into its own function

in the future i'm hoping to take agruments like

cile ./dump.sql ./another.sql

and eventually a file that is a list of files

cile -f mylist.txt