add superclass Database for common methods among classes