Feature/database models

Merge data model and import (collector) api endpoint into master. Test cases are included.