working with database config