implement database storage class.