Added output to log window + DB creation