added model layer
added simple database association to models