changed db design