script reads from sites table