prevented duplicate logs in db, renamed scrap to server