updated model from database