updates version sql