changed: Move texture-database open/closing to base class