made DB optional