Base DB library