Updated sql script from meta