If the item in the file exists, it deletes the line, otherwise it inserts, from the look on your coding..

write -iline-number "Website Database

if you want to add it to the end, remove the -i

Eamonn.