Handle empty database path by point to value in setting.