updated sql 6/15/14 3 46PM