implement --force option for --inject-as-head to allow replacing a curre...

...nt corrupt head.db

add different exit codes depending on which database is corrupted