Split the checks for the pre-commit hook
Fixed db_file_insert

Was not using the correct string for re-naming
Nicer error formatting