Update database scripts and log