insert files uploaded into local database