Updated sql, apostrophe where replaced with ''