Setting database config