Added DB model to resources
Modified DB model: changed ralationships between tables