fix some warning
use config.ini connect database