Update with sql query solutions and reflection.