added full insert functionality
added lookup_file
do lookup before insert
added dupcheck functionality
added call for dupcheck