Database script: Fixes issue with the ID selector