layout and db design