Added auto_init db class