Lines to window and fixing bug #3

importer does not check if entry with that name already exists in
database.