Fixing add to db call