Update castle.core and sqlite