setup database config