Update datatbase structure