fix a little about changing DB connection