added insert method in the database
saving files
fixed dublicate insertion