removed database connect, import into DB class