init db class