Store database instance in class property