Added Model::update() and upsert()
Renamed Model::insertRelations() to upsertRelations()
Fixed query counting