Update prepare

Update sql to newest version