SQL Query functionality, warning: 'update statements unrestricted'