setting database configuration