Added db class (nor tested, nor implemented)