update database layout