Added safe SQL to all issue queries