Added the idiom class for DB