Removed brackets from SQL statements for forward compatibility.