updated core.sql