log data to db
config db host
add db config for recording