moving db_type to be set in the generic attributes