fix assigning DB_TYPE