removed unneccessary db call