pretty final rest api and db design