Sample model

Easily adaptable, uses mysql but illustrates methods