extracting database configuration