fix bug when empty database password
use log.Panic instead of panic