updated core.sql - prev update was incorrect