removed unneeded db call