Sets database configuration