update database sql structure