how to simplify work with sql server?