Added boolean db_type