fixed syntax on db call