model and SQL documentation updated