config database prepared