changed: Have the texture db member in the base class