Models for core functionality
First working version of databse