added db class and exception package