Updated the DB script

Added the Log table