Created database interface and models