whoops, fixing bad db call