database added and working although not connected to model class. :(