only update data base if the upload was sucessful
remove duplicate code
move to an action list
add flag option and only show stderr or stdout with content
parse flags
add flags to facard
better error handling for incorect cert parse word
parse flags and use them