add tmp and db config