updated db design