weight file and db update script