Update database sql script