Update attribute.x and make sqlite handle global.