Added class Model where all other models can inherit.

Instead of creating a __construct() function for each, extend NewModel with Model. Also added $db protected member and PHPDoc with type PDO for autocomplete for editors.