add proper curly brackets to table name in sql