Faster db ending with Y/N