Fixed bug with giving null as an argument for Query::get and Query::getAll methods, also added a Model class for models to extend