removed redundant db call