Part I pretty much done with sql and perhaps erb